package com.htlwk.javapractice;

import java.util.Arrays;
import java.util.stream.Stream;

/**
 * @ClassName MethodReferenceExample
 * @Description TODO
 * @Author liaowenxiong
 * @Date 2024/12/7 22:14
 * @Version 1.0
 */
public class MethodReferenceExample {
    public static void main(String[] args) {
        Stream<String> stream = Arrays.asList("apple","banana","orange").stream();
        stream.map(String::toUpperCase).forEach(System.out::println);
    }
}
